package com.aididi.concurrent;

/**
 * @Auther: zx.xu
 * @Description:
 */
public class TestCallRun extends Thread{
    @Override
    public void run() {
        for (int i = 1; i < 5; i++) {
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                System.out.println(e);
            }
            System.out.println(i);
        }
    }

    public static void main(String args[]) {
        TestCallRun t1 = new TestCallRun();
        TestCallRun t2 = new TestCallRun();

        t1.run();
        t2.run();
    }

}
